﻿/**
 * ...
 * @author George Mavchun
 */

package gui.hug.priv;
import gui.hug.HUGButton;
import gui.hug.HUGColors;

class HUGComboBoxButton extends HUGButton
{
	private var comboDisplayState : HUGComboBoxButtonDisplayState;
	private var comboOverDisplayState : HUGComboBoxButtonDisplayState;

	public function new(text : String, width : Float) 
	{
		super("");

		comboDisplayState = new HUGComboBoxButtonDisplayState(text, width, HUGColors.WHITE);
		comboOverDisplayState = new HUGComboBoxButtonDisplayState(text, width, HUGColors.VK_BORDER_INNER);
		
		setStates();
	}
	
	private function setStates() {
		downState = comboOverDisplayState;
		overState = comboOverDisplayState;
		upState = comboDisplayState;
		hitTestState = comboDisplayState;
	}

}